﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;
using Thaire.Investment.Domains.Transaction;

namespace Thaire.Investment.Repository
{
    public class FixincomesecuritiesAmortizeScheduleRepo : BaseRepository <FixincomesecuritiesAmortizeSchedule, int>
    {
        public FixincomesecuritiesAmortizeScheduleRepo(ISession session)
            : base(session)
        {
        }

        public List<FixincomesecuritiesAmortizeSchedule> GetByFixIncomeHeaderID(int headerID)
        {
            return _session.QueryOver<FixincomesecuritiesAmortizeSchedule>()
                           .Where(x => x.FixincomesecuritiesHeaderID == headerID).List().ToList();
        }

    }
}
